docs: add theme hot-reloading section with SIGUSR2 signal#9208
Open
skylight74 wants to merge 1 commit intoanomalyco:devfrom
Open
docs: add theme hot-reloading section with SIGUSR2 signal#9208skylight74 wants to merge 1 commit intoanomalyco:devfrom
skylight74 wants to merge 1 commit intoanomalyco:devfrom
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate FoundPR #4879: feat: add theme hot-reload functionality Reason for concern: This PR appears to implement the actual theme hot-reload feature that PR #9208 is documenting. The current PR (#9208) is adding documentation for a feature that was implemented in PR #4879. You may want to check if:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR documents the previously undocumented theme hot-reloading feature that allows users to reload themes without restarting OpenCode by sending a SIGUSR2 signal to the process.
Changes:
- Added a new "Theme hot-reloading" section to the themes documentation
- Documented the
SIGUSR2signal behavior and its effects on theme reloading - Provided practical integration examples with dynamic theming tools like wallust
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
713fa63 to
539e7ae
Compare
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds documentation for the undocumented theme hot-reloading feature using the
SIGUSR2signal.This is useful for users who:
Changes
SIGUSR2signal behaviorHow I verified it works
Discovered this feature by reading the source code in
packages/opencode/src/cli/cmd/tui/context/theme.tsxwhich contains:Tested by sending
pkill -USR2 -x opencodeafter modifying theme files - themes reload correctly.